﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Edit.ascx.cs" Inherits="Modules_WebpartPage_Edit" %>
<script type="text/javascript">

function module_delete(id) {
    window.location = createLink("WebpartPage", "WebpartPage", "editpage", "deletepart") + "?partId=" + id + "&Id=" + <%=PageID%> ;
}

function module_edit(id) {
    window.location = createLink("WebpartPage", "WebpartPage", "editpage", "editpart") + "?partId=" + id + "&Id=" + <%=PageID%> ;
}
function module_clone(id) {
    window.location = createLink("WebpartPage", "WebpartPage", "editpage", "clonepart") + "?partId=" + id + "&Id=" + <%=PageID%> ;
}
</script>
<input id="order_store" type="hidden" name="order_store"/>
<table width="99%">
    <tr>
        <td colspan="2">
            <asp:Label ID="Message" Visible="false" runat="server" Text="Wrong page!"></asp:Label>
        </td>
    </tr>
    <tr valign="top">
        <td>
            <div style="margin-left:14px;font-size: 14px;">Đang sửa: <b><%=CategoryName%> </b></div>
            <asp:PlaceHolder ID="Content" runat="server"></asp:PlaceHolder>
            <br/>
            <asp:Button ID="Apply" runat="server" Text="Apply" Width="150" OnClick="Apply_Click" />
            <asp:Button ID="btnGoOther" runat="server" Text="Trang chi tiết" Width="150" OnClick="GoOther" />
            <asp:HiddenField ID="hidOtherPageId" runat="server" />
        </td>
        <td>
            <asp:Image runat="server" ID="imgLayout" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            
        </td>
    </tr>
    
    <tr>
        <td colspan="2" style="background-color: #E2E2E2">
            <table width="99%">
                <tr valign="top">
                    <td style="padding:5px;">
                        <b>Chọn mẫu bố cục</b><br/>
                        <asp:DropDownList ID="cboWebpartDef" runat="server" DataTextField="Name" DataValueField="Id">
                        </asp:DropDownList>
                    </td>
                    <td  style="padding:5px;">
                        <b>Chọn khu vực</b><br/>
                        <asp:DropDownList ID="Zones" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 100%;padding:15px 5px 5px 5px;">
                        <asp:Button ID="Add" runat="server" Width="100" Height="30" Text="Thêm" OnClick="Add_Click" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="bgdesign">
            <asp:PlaceHolder ID="WebPage" runat="server"></asp:PlaceHolder>
        </td>
    </tr>
</table>